package com.songlanyun.modules.order.model.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

/**
 * 服务商品预约记录
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-03-19 13:54:17
 */
@Data
public class ReservationRecordDTO implements ValueObject {


    /**
     * 店铺
     */
    @Null
    private Long shopId;
    /**
     * 子订单id
     */
    @NotNull(message = "子订单不能为空")
    private Long childOrderId;

    /**
     * 预约时间
     */
    @NotNull(message = "预约时间不能为空")
    private Date appointmentTime;

    /**
     * 客户要求
     */
    @Length(max = 300, message = "客户要求字数不能超过300个字")
    private String require;

    /**
     * 核销码
     */
    @NotBlank(message = "核销码不能空")
    private String verificationCode;

    /**
     * 登记人
     */
    @Null
    private Long registrant;


}
